import request from '@/utils/request'

// 查询主播收益详情列表
export function listActormoney(query) {
  return request({
    url: '/chiwen/actor/actormoneylist',
    method: 'get',
    params: query
  })
}
// 查询主播收益列表
export function listActor(query) {
  return request({
    url: '/chiwen/actor/list',
    method: 'get',
    params: query
  })
}

// 查询主播收益详细
export function getActor(id) {
  return request({
    url: '/chiwen/actor/' + id,
    method: 'get'
  })
}

// 新增主播收益
export function addActor(data) {
  return request({
    url: '/chiwen/actor',
    method: 'post',
    data: data
  })
}

// 修改主播收益
export function updateActor(data) {
  return request({
    url: '/chiwen/actor',
    method: 'put',
    data: data
  })
}

// 删除主播收益
export function delActor(id) {
  return request({
    url: '/chiwen/actor/' + id,
    method: 'delete'
  })
}

// 导出主播收益
export function exportActor(query) {
  return request({
    url: '/chiwen/actor/export',
    method: 'get',
    params: query
  })
}